package components.alert
{
	import flash.utils.Dictionary;

	public class Alert
	{
		private static var _dict:Dictionary = new Dictionary();
		
		public function Alert()
		{
		}
		
		public static function show( content:String, okFun:Function=null, cancelFun:Function=null ):void
		{
			var ac:AlertController = new AlertController();
			ac.setInfo( content, okFun, cancelFun );
			_dict[ac] = ac;
		}
		
		internal static function remove( ac:AlertController ):void
		{
			if( _dict[ac] != null )
			{
				delete _dict[ac];
			}
		}
	}
}